vt-d: Fix interrupt remapping for multiple IOAPICs
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 15 May 2009 07:12:39 +0000 (08:12 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 15 May 2009 07:12:39 +0000 (08:12 +0100)
commit9e8f7237f16f340ec9166deb514b47648ff6cad1
tree8c1947d8a344a28faf494ff253fe12d1f87b8d56
parent520302d743e55423d60ff1fdd5b0decf05105973
vt-d: Fix interrupt remapping for multiple IOAPICs

Current IOAPIC interrupt remapping code assumes there is only one
IOAPIC in system. It brings problem when there are more than one
IOAPIC in system. This patch extends ioapic_pin_to_intremap_index[]
array to handle multiple IOAPICs case.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/drivers/passthrough/vtd/intremap.c